package com.power.sifa.correction.api;

import com.plf.common.domain.ResponseDTO;
import com.power.sifa.correction.model.Crc_camera;
import com.power.sifa.correction.model.pageInfo.Crc_cameraPageInfo;
import org.springframework.web.bind.annotation.*;
import org.springframework.web.multipart.MultipartFile;

import javax.servlet.http.HttpServletResponse;
import java.io.IOException;

/**
 *  摄像头信息 Feign
 */
public interface ICrc_cameraFeign {

    /**
     * 摄像头信息分页列表
     */
    @PostMapping("/crc_camera/list")
    ResponseDTO list(@RequestBody Crc_cameraPageInfo crc_cameraPageInfo);

    /**
    * 查看摄像头信息
    */
    @GetMapping("/crc_camera/view")
    ResponseDTO view(@RequestParam("id") String id);

    /**
    * 删除摄像头信息
    */
    @PostMapping("/crc_camera/delete")
    ResponseDTO delete(@RequestParam("id") String id);

    ///**
    // * 查看摄像头信息 复合主键使用
    // */
    //@PostMapping("/crc_camera/viewByPK")
    //ResponseDTO viewByPK(@RequestBody Crc_camera.Crc_cameraPK pk);

    /**
     * 修改或保存摄像头信息
     */
    @PostMapping("/crc_camera/save")
    ResponseDTO save(@RequestBody Crc_camera  crc_camera);

    ///**
    // * 删除摄像头信息 复合主键使用
    // */
    //@PostMapping("/crc_camera/deleteByPK")
    //ResponseDTO deleteByPK(@RequestBody Crc_camera.Crc_cameraPK pk);
    
    /**
     * 批量删除摄像头信息
     */
    @PostMapping("/crc_camera/batchDel")
    ResponseDTO batchDel(@RequestParam("ids") String ids);
    
     /**
     * 导出excel
     */
    @PostMapping("/crc_camera/output")
    void output(HttpServletResponse response, @RequestBody Crc_cameraPageInfo crc_cameraPageInfo);
        
     /**
     * 导出excel模板
     */
    @PostMapping("/crc_camera/exportExcelTemplate")
    void exportExcelTemplate(HttpServletResponse response);
    
     /**
     *	导入excel
     */
    @PostMapping("/crc_camera/importExcel")
    ResponseDTO importExcel(@RequestBody MultipartFile file) throws IOException ;


    @GetMapping("/crc_camera/reverseParseAddress")
    ResponseDTO reverseParseAddress(@RequestParam("location") String location);

    @GetMapping("/crc_camera/getCameraSize")
    ResponseDTO getCameraSize();

}
